package com.bj58.mis.apm.apm.scf.module;

import javax.persistence.*;

/**
 * @author zhangyu84
 * @create 2018/7/5
 * @since 1.0.0
 */
@Entity
@Table(name = "roc_auth_project")
public class RocAuthProject {
    public RocAuthProject() {
    }

    public RocAuthProject( String owner, String projectId,String projectName,String projectNameCh,String createTime,String  lastModified) {
        this.owner = owner;
        this.projectId = projectId;
        this.projectName=projectName;
        this.projectNameCh=projectNameCh;
        this.createTime=createTime;
        this.lastModified=lastModified;
    }

    private long id;
    private String owner;
    private String projectId;
    private String projectName;
    private String projectNameCh;
    private String createTime;
    private String lastModified;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "owner")
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }



    @Column(name = "project_id")
    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    @Column(name = "project_name")
    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }


    @Column(name = "create_time")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Column(name = "last_modified")
    public String getLastModified() {
        return lastModified;
    }

    public void setLastModified(String lastModified) {
        this.lastModified = lastModified;
    }

    @Column(name = "project_name_ch")
    public String getProjectNameCh() {
        return projectNameCh;
    }

    public void setProjectNameCh(String projectNameCh) {
        this.projectNameCh = projectNameCh;
    }


    @Override
    public String toString() {
        return "AuthProject[id=" + this.id + ", owner='" + this.owner + '\'' + ", projectId='" + this.projectName + '\''+", projectName='" + this.projectName+ '\''+ ", createTime='" + this.createTime + '\''+ ", lastModified='" + this.lastModified + '\''+ ']';
    }
}
